/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package gui;

import java.awt.Color;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JLabel;



/**
 *
 * @author LaurentPC
 */
public class Scores extends javax.swing.JFrame {
    
    
    String scoreValue1, scoreValue2, scoreValue3, scoreValue4, scoreValue5;
    
    String schoolValue1, schoolValue2, schoolValue3, schoolValue4, schoolValue5;
    
    int PrevX, PrevY, PrevWidth, PrevHeight;
    Board board;
    public Scores(String scoreValue1,String scoreValue2,String scoreValue3,String scoreValue4,String scoreValue5, String schoolValue1,String schoolValue2,String schoolValue3,String schoolValue4,String schoolValue5, Board board) {
        this.board=board;
        try {
           
    		this.setContentPane(new JLabel(new ImageIcon(ImageIO.read(new File("pattern-metal-wallszone-hd-wallpaper-22386.jpg")))));
                
    	} catch (IOException e) {
            System.out.println("asdad");
    		e.printStackTrace();
    	}
        
      initComponents();
      schoolFinalPanel1.setOpaque(true);
      schoolFinalPanel1.setBackground(new Color(0,0,0,200));
      schoolFinalPanel2.setOpaque(true);
      schoolFinalPanel2.setBackground(new Color(0,0,0,200));
      schoolFinalPanel3.setOpaque(true);
      schoolFinalPanel3.setBackground(new Color(0,0,0,200));
      schoolFinalPanel4.setOpaque(true);
      schoolFinalPanel4.setBackground(new Color(0,0,0,200));
      schoolFinalPanel5.setOpaque(true);
      schoolFinalPanel5.setBackground(new Color(0,0,0,200));
      PrevX = getX();
      PrevY = getY();
      PrevWidth = getWidth();
      PrevHeight = getHeight();

      dispose(); //Destroys the whole JFrame but keeps organized every Component                               
                  //Needed if you want to use Undecorated JFrame
                  //dispose() is the reason that this trick doesn't work with videos
                  setUndecorated(true);

          setBounds(0,0,getToolkit().getScreenSize().width,getToolkit().getScreenSize().height);
        setVisible(true);
        this.scoreValue1=scoreValue1;
        score1.setText(scoreValue1);
        this.scoreValue2=scoreValue2;
        score2.setText(scoreValue2);
        this.scoreValue3=scoreValue3;
        score3.setText(scoreValue3);
        this.scoreValue4=scoreValue4;
        score4.setText(scoreValue4);
        this.scoreValue5=scoreValue5;
        score5.setText(scoreValue5);
        school1.setText(schoolValue1);
        school2.setText(schoolValue2);
        school3.setText(schoolValue3);
        school4.setText(schoolValue4);
        school5.setText(schoolValue5);
        
        
        /*score2.setOpaque(false);
        score3.setOpaque(false);
        score4.setOpaque(false);
        score5.setOpaque(false);*/
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        schoolFinalPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        school1 = new javax.swing.JLabel();
        score1 = new javax.swing.JLabel();
        penalitySpinner1 = new javax.swing.JSpinner();
        jLabel3 = new javax.swing.JLabel();
        schoolFinalPanel2 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        school2 = new javax.swing.JLabel();
        score2 = new javax.swing.JLabel();
        penalitySpinner2 = new javax.swing.JSpinner();
        jLabel4 = new javax.swing.JLabel();
        schoolFinalPanel3 = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        school3 = new javax.swing.JLabel();
        score3 = new javax.swing.JLabel();
        penalitySpinner3 = new javax.swing.JSpinner();
        jLabel6 = new javax.swing.JLabel();
        schoolFinalPanel4 = new javax.swing.JPanel();
        jLabel7 = new javax.swing.JLabel();
        school4 = new javax.swing.JLabel();
        score4 = new javax.swing.JLabel();
        penalitySpinner4 = new javax.swing.JSpinner();
        jLabel8 = new javax.swing.JLabel();
        schoolFinalPanel5 = new javax.swing.JPanel();
        jLabel9 = new javax.swing.JLabel();
        school5 = new javax.swing.JLabel();
        score5 = new javax.swing.JLabel();
        penalitySpinner5 = new javax.swing.JSpinner();
        jLabel10 = new javax.swing.JLabel();
        jMenuBar2 = new javax.swing.JMenuBar();
        jMenu3 = new javax.swing.JMenu();
        jMenuItem3 = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(800, 600));
        setPreferredSize(new java.awt.Dimension(800, 600));
        getContentPane().setLayout(new java.awt.GridLayout(5, 1));

        schoolFinalPanel1.setBackground(new Color(0, 0, 0, 0));

        jLabel1.setBackground(new java.awt.Color(0, 0, 0));
        jLabel1.setFont(new java.awt.Font("Arial", 0, 45)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setText("École:");
        jLabel1.setOpaque(true);

        school1.setBackground(new java.awt.Color(0, 0, 0));
        school1.setFont(new java.awt.Font("Arial", 1, 45)); // NOI18N
        school1.setForeground(new java.awt.Color(255, 255, 255));
        school1.setText("jLabel2");
        school1.setOpaque(true);

        score1.setBackground(new java.awt.Color(0, 0, 0));
        score1.setFont(new java.awt.Font("Arial", 1, 65)); // NOI18N
        score1.setForeground(new java.awt.Color(255, 255, 255));
        score1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        score1.setText("jLabel2");
        score1.setOpaque(true);

        penalitySpinner1.setFont(new java.awt.Font("Arial", 0, 27)); // NOI18N
        penalitySpinner1.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                penalitySpinner1StateChanged(evt);
            }
        });

        jLabel3.setBackground(new java.awt.Color(0, 0, 0));
        jLabel3.setFont(new java.awt.Font("Arial", 0, 27)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(255, 255, 255));
        jLabel3.setText("Pénalité:");
        jLabel3.setOpaque(true);

        javax.swing.GroupLayout schoolFinalPanel1Layout = new javax.swing.GroupLayout(schoolFinalPanel1);
        schoolFinalPanel1.setLayout(schoolFinalPanel1Layout);
        schoolFinalPanel1Layout.setHorizontalGroup(
            schoolFinalPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(schoolFinalPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(schoolFinalPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(schoolFinalPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(school1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(schoolFinalPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)
                        .addComponent(score1, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 82, Short.MAX_VALUE)
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(penalitySpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(25, Short.MAX_VALUE))))
        );
        schoolFinalPanel1Layout.setVerticalGroup(
            schoolFinalPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(schoolFinalPanel1Layout.createSequentialGroup()
                .addGap(4, 4, 4)
                .addGroup(schoolFinalPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(school1))
                .addGap(13, 13, 13)
                .addGroup(schoolFinalPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(score1)
                    .addComponent(jLabel3)
                    .addComponent(penalitySpinner1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(61, Short.MAX_VALUE))
        );

        getContentPane().add(schoolFinalPanel1);

        schoolFinalPanel2.setBackground(new Color(0, 0, 0, 0));

        jLabel2.setBackground(new java.awt.Color(0, 0, 0));
        jLabel2.setFont(new java.awt.Font("Arial", 0, 45)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("École:");
        jLabel2.setOpaque(true);

        school2.setBackground(new java.awt.Color(0, 0, 0));
        school2.setFont(new java.awt.Font("Arial", 1, 45)); // NOI18N
        school2.setForeground(new java.awt.Color(255, 255, 255));
        school2.setText("jLabel2");
        school2.setOpaque(true);

        score2.setBackground(new java.awt.Color(0, 0, 0));
        score2.setFont(new java.awt.Font("Arial", 1, 65)); // NOI18N
        score2.setForeground(new java.awt.Color(255, 255, 255));
        score2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        score2.setText("jLabel2");
        score2.setOpaque(true);

        penalitySpinner2.setFont(new java.awt.Font("Arial", 0, 27)); // NOI18N
        penalitySpinner2.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                penalitySpinner2StateChanged(evt);
            }
        });

        jLabel4.setBackground(new java.awt.Color(0, 0, 0));
        jLabel4.setFont(new java.awt.Font("Arial", 0, 27)); // NOI18N
        jLabel4.setForeground(new java.awt.Color(255, 255, 255));
        jLabel4.setText("Pénalité:");
        jLabel4.setOpaque(true);

        javax.swing.GroupLayout schoolFinalPanel2Layout = new javax.swing.GroupLayout(schoolFinalPanel2);
        schoolFinalPanel2.setLayout(schoolFinalPanel2Layout);
        schoolFinalPanel2Layout.setHorizontalGroup(
            schoolFinalPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(schoolFinalPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(schoolFinalPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(schoolFinalPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(school2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(schoolFinalPanel2Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)
                        .addComponent(score2, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 81, Short.MAX_VALUE)
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(penalitySpinner2, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(25, Short.MAX_VALUE))))
        );
        schoolFinalPanel2Layout.setVerticalGroup(
            schoolFinalPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(schoolFinalPanel2Layout.createSequentialGroup()
                .addGroup(schoolFinalPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(school2, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(schoolFinalPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(score2)
                    .addComponent(jLabel4)
                    .addComponent(penalitySpinner2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(67, Short.MAX_VALUE))
        );

        getContentPane().add(schoolFinalPanel2);

        schoolFinalPanel3.setBackground(new Color(0, 0, 0, 0));

        jLabel5.setBackground(new java.awt.Color(0, 0, 0));
        jLabel5.setFont(new java.awt.Font("Arial", 0, 45)); // NOI18N
        jLabel5.setForeground(new java.awt.Color(255, 255, 255));
        jLabel5.setText("École:");
        jLabel5.setOpaque(true);

        school3.setBackground(new java.awt.Color(0, 0, 0));
        school3.setFont(new java.awt.Font("Arial", 1, 45)); // NOI18N
        school3.setForeground(new java.awt.Color(255, 255, 255));
        school3.setText("jLabel2");
        school3.setOpaque(true);

        score3.setBackground(new java.awt.Color(0, 0, 0));
        score3.setFont(new java.awt.Font("Arial", 1, 65)); // NOI18N
        score3.setForeground(new java.awt.Color(255, 255, 255));
        score3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        score3.setText("jLabel2");
        score3.setOpaque(true);

        penalitySpinner3.setFont(new java.awt.Font("Arial", 0, 27)); // NOI18N
        penalitySpinner3.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                penalitySpinner3StateChanged(evt);
            }
        });

        jLabel6.setBackground(new java.awt.Color(0, 0, 0));
        jLabel6.setFont(new java.awt.Font("Arial", 0, 27)); // NOI18N
        jLabel6.setForeground(new java.awt.Color(255, 255, 255));
        jLabel6.setText("Pénalité:");
        jLabel6.setOpaque(true);

        javax.swing.GroupLayout schoolFinalPanel3Layout = new javax.swing.GroupLayout(schoolFinalPanel3);
        schoolFinalPanel3.setLayout(schoolFinalPanel3Layout);
        schoolFinalPanel3Layout.setHorizontalGroup(
            schoolFinalPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(schoolFinalPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(schoolFinalPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(schoolFinalPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(school3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(schoolFinalPanel3Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)
                        .addComponent(score3, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 82, Short.MAX_VALUE)
                        .addComponent(jLabel6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(penalitySpinner3, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(24, Short.MAX_VALUE))))
        );
        schoolFinalPanel3Layout.setVerticalGroup(
            schoolFinalPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(schoolFinalPanel3Layout.createSequentialGroup()
                .addGroup(schoolFinalPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(school3, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(schoolFinalPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(score3)
                    .addComponent(jLabel6)
                    .addComponent(penalitySpinner3, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(67, Short.MAX_VALUE))
        );

        getContentPane().add(schoolFinalPanel3);

        schoolFinalPanel4.setBackground(new Color(0, 0, 0, 0));

        jLabel7.setBackground(new java.awt.Color(0, 0, 0));
        jLabel7.setFont(new java.awt.Font("Arial", 0, 45)); // NOI18N
        jLabel7.setForeground(new java.awt.Color(255, 255, 255));
        jLabel7.setText("École:");
        jLabel7.setOpaque(true);

        school4.setBackground(new java.awt.Color(0, 0, 0));
        school4.setFont(new java.awt.Font("Arial", 1, 45)); // NOI18N
        school4.setForeground(new java.awt.Color(255, 255, 255));
        school4.setText("jLabel2");
        school4.setOpaque(true);

        score4.setBackground(new java.awt.Color(0, 0, 0));
        score4.setFont(new java.awt.Font("Arial", 1, 65)); // NOI18N
        score4.setForeground(new java.awt.Color(255, 255, 255));
        score4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        score4.setText("jLabel2");
        score4.setOpaque(true);

        penalitySpinner4.setFont(new java.awt.Font("Arial", 0, 27)); // NOI18N
        penalitySpinner4.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                penalitySpinner4StateChanged(evt);
            }
        });

        jLabel8.setBackground(new java.awt.Color(0, 0, 0));
        jLabel8.setFont(new java.awt.Font("Arial", 0, 27)); // NOI18N
        jLabel8.setForeground(new java.awt.Color(255, 255, 255));
        jLabel8.setText("Pénalité:");
        jLabel8.setOpaque(true);

        javax.swing.GroupLayout schoolFinalPanel4Layout = new javax.swing.GroupLayout(schoolFinalPanel4);
        schoolFinalPanel4.setLayout(schoolFinalPanel4Layout);
        schoolFinalPanel4Layout.setHorizontalGroup(
            schoolFinalPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(schoolFinalPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(schoolFinalPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(schoolFinalPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(school4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(schoolFinalPanel4Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)
                        .addComponent(score4, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 80, Short.MAX_VALUE)
                        .addComponent(jLabel8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(penalitySpinner4, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(25, Short.MAX_VALUE))))
        );
        schoolFinalPanel4Layout.setVerticalGroup(
            schoolFinalPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(schoolFinalPanel4Layout.createSequentialGroup()
                .addGroup(schoolFinalPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(school4, javax.swing.GroupLayout.DEFAULT_SIZE, 58, Short.MAX_VALUE)
                    .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(schoolFinalPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(score4)
                    .addComponent(jLabel8)
                    .addComponent(penalitySpinner4, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(67, 67, 67))
        );

        getContentPane().add(schoolFinalPanel4);

        schoolFinalPanel5.setBackground(new Color(0, 0, 0, 0));

        jLabel9.setBackground(new java.awt.Color(0, 0, 0));
        jLabel9.setFont(new java.awt.Font("Arial", 0, 45)); // NOI18N
        jLabel9.setForeground(new java.awt.Color(255, 255, 255));
        jLabel9.setText("École:");
        jLabel9.setOpaque(true);

        school5.setBackground(new java.awt.Color(0, 0, 0));
        school5.setFont(new java.awt.Font("Arial", 1, 45)); // NOI18N
        school5.setForeground(new java.awt.Color(255, 255, 255));
        school5.setText("jLabel2");
        school5.setOpaque(true);

        score5.setBackground(new java.awt.Color(0, 0, 0));
        score5.setFont(new java.awt.Font("Arial", 1, 65)); // NOI18N
        score5.setForeground(new java.awt.Color(255, 255, 255));
        score5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        score5.setText("jLabel2");
        score5.setOpaque(true);

        penalitySpinner5.setFont(new java.awt.Font("Arial", 0, 27)); // NOI18N
        penalitySpinner5.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                penalitySpinner5StateChanged(evt);
            }
        });

        jLabel10.setBackground(new java.awt.Color(0, 0, 0));
        jLabel10.setFont(new java.awt.Font("Arial", 0, 27)); // NOI18N
        jLabel10.setForeground(new java.awt.Color(255, 255, 255));
        jLabel10.setText("Pénalité:");
        jLabel10.setOpaque(true);

        javax.swing.GroupLayout schoolFinalPanel5Layout = new javax.swing.GroupLayout(schoolFinalPanel5);
        schoolFinalPanel5.setLayout(schoolFinalPanel5Layout);
        schoolFinalPanel5Layout.setHorizontalGroup(
            schoolFinalPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(schoolFinalPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(schoolFinalPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(schoolFinalPanel5Layout.createSequentialGroup()
                        .addComponent(jLabel9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(school5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(schoolFinalPanel5Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)
                        .addComponent(score5, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 89, Short.MAX_VALUE)
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(penalitySpinner5, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(24, Short.MAX_VALUE))))
        );
        schoolFinalPanel5Layout.setVerticalGroup(
            schoolFinalPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(schoolFinalPanel5Layout.createSequentialGroup()
                .addGap(0, 0, 0)
                .addGroup(schoolFinalPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(school5)
                    .addGroup(schoolFinalPanel5Layout.createSequentialGroup()
                        .addGap(11, 11, 11)
                        .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(schoolFinalPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(score5)
                    .addComponent(jLabel10)
                    .addComponent(penalitySpinner5, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(67, Short.MAX_VALUE))
        );

        getContentPane().add(schoolFinalPanel5);

        jMenu3.setText("File");

        jMenuItem3.setLabel("Exit");
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItem3);

        jMenuBar2.add(jMenu3);

        setJMenuBar(jMenuBar2);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void penalitySpinner1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_penalitySpinner1StateChanged
            int number = Integer.parseInt(scoreValue1)+(int)(penalitySpinner1.getValue());
            score1.setText("" + number);
            if(Integer.parseInt(score1.getText())<Integer.parseInt(scoreValue1)) {
                score1.setForeground(Color.red);
            } else if(Integer.parseInt(score1.getText())>Integer.parseInt(scoreValue1)) {
                score1.setForeground(Color.green);
            }else {
            score1.setForeground(Color.white);
        }
    }//GEN-LAST:event_penalitySpinner1StateChanged

    private void penalitySpinner2StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_penalitySpinner2StateChanged
        int number = Integer.parseInt(scoreValue2)+(int)(penalitySpinner2.getValue());
        score2.setText("" + number);
        if(Integer.parseInt(score2.getText())<Integer.parseInt(scoreValue2)) {
                score2.setForeground(Color.red);
            } else if(Integer.parseInt(score2.getText())>Integer.parseInt(scoreValue2)) {
                score2.setForeground(Color.green);
            }else {
            score2.setForeground(Color.white);
        }
    }//GEN-LAST:event_penalitySpinner2StateChanged

    private void penalitySpinner3StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_penalitySpinner3StateChanged
        int number = Integer.parseInt(scoreValue3)+(int)(penalitySpinner3.getValue());
        score3.setText("" + number);
        if(Integer.parseInt(score3.getText())<Integer.parseInt(scoreValue3)) {
                score3.setForeground(Color.red);
            } else if(Integer.parseInt(score3.getText())>Integer.parseInt(scoreValue3)) {
                score3.setForeground(Color.green);
            }else {
            score3.setForeground(Color.white);
        }
    }//GEN-LAST:event_penalitySpinner3StateChanged

    private void penalitySpinner4StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_penalitySpinner4StateChanged
        int number = Integer.parseInt(scoreValue4)+(int)(penalitySpinner4.getValue());
        score4.setText("" + number);
        if(Integer.parseInt(score4.getText())<Integer.parseInt(scoreValue4)) {
                score4.setForeground(Color.red);
            } if(Integer.parseInt(score4.getText())>Integer.parseInt(scoreValue4)) {
                score4.setForeground(Color.green);
            }else {
            score4.setForeground(Color.white);
        }
    }//GEN-LAST:event_penalitySpinner4StateChanged

    private void penalitySpinner5StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_penalitySpinner5StateChanged
        int number = Integer.parseInt(scoreValue5)+(int)(penalitySpinner5.getValue());
        score5.setText("" + number);
        if(Integer.parseInt(score5.getText())<Integer.parseInt(scoreValue5)) {
                score5.setForeground(Color.red);
            } else if(Integer.parseInt(score5.getText())>Integer.parseInt(scoreValue5)) {
                score5.setForeground(Color.green);
            }
        else {
            score5.setForeground(Color.white);
        }
    }//GEN-LAST:event_penalitySpinner5StateChanged

    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
        dispose();
        board.setFront();
    }//GEN-LAST:event_jMenuItem3ActionPerformed

    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        /* Set the Nimbus look and feel */
//        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
//        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
//         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
//         */
//        try {
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
//                    break;
//                }
//            }
//        } catch (ClassNotFoundException ex) {
//            java.util.logging.Logger.getLogger(Scores.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (InstantiationException ex) {
//            java.util.logging.Logger.getLogger(Scores.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (IllegalAccessException ex) {
//            java.util.logging.Logger.getLogger(Scores.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//            java.util.logging.Logger.getLogger(Scores.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//        }
//        //</editor-fold>
//
//        /* Create and display the form */
//        java.awt.EventQueue.invokeLater(new Runnable() {
//            public void run() {
//                new Scores().setVisible(true);
//            }
//        });
//    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JSpinner penalitySpinner1;
    private javax.swing.JSpinner penalitySpinner2;
    private javax.swing.JSpinner penalitySpinner3;
    private javax.swing.JSpinner penalitySpinner4;
    private javax.swing.JSpinner penalitySpinner5;
    private javax.swing.JLabel school1;
    private javax.swing.JLabel school2;
    private javax.swing.JLabel school3;
    private javax.swing.JLabel school4;
    private javax.swing.JLabel school5;
    private javax.swing.JPanel schoolFinalPanel1;
    private javax.swing.JPanel schoolFinalPanel2;
    private javax.swing.JPanel schoolFinalPanel3;
    private javax.swing.JPanel schoolFinalPanel4;
    private javax.swing.JPanel schoolFinalPanel5;
    private javax.swing.JLabel score1;
    private javax.swing.JLabel score2;
    private javax.swing.JLabel score3;
    private javax.swing.JLabel score4;
    private javax.swing.JLabel score5;
    // End of variables declaration//GEN-END:variables
}
